package str;

/**
 * @author:WIN10
 * @date:2022/1/18
 * @describe:
 */
public class CharacterString {

    private static String strA = "character string";
    private static String strB = "Character String";

    public static void main(String[] args) {
        //equals比较
        if (strA.equals(strB)) {
            System.out.println("值相同");
        } else {
            System.out.println("值不同");
        }
        //equalsIgnoreCase比较
        if (strA.equalsIgnoreCase(strB)) {
            System.out.println("值相同");
        } else {
            System.out.println("值不同");
        }
        //length()长度
        System.out.println(strA.length());
        //toUpperCase
        System.out.println(strA.toUpperCase());
        //tuLowerCase
        System.out.println(strB.toLowerCase());

        
    }
}
